#include "e2d/imgui/impl/Editor.h"
#include "e2d/core/impl/components.h"
#include "sysx/System.h"
#include "e2d/core/Settings.h"

using Editor = e2d::BasicEditor;

template<>
bool Editor::Edit<e2d::MonoScripts>(const std::string& l, e2d::MonoScripts& e)
{
	int index = 0;

	if (ImGui::BeginDragDropTarget()) {
		if (const ImGuiPayload* payload = ImGui::AcceptDragDropPayload("File")) {
			const fxcc::File receivedData = *(const fxcc::File*)payload->Data;
			ztclog::info("name is %s", receivedData.m_RelativePath.c_str());

		}
		ImGui::EndDragDropTarget();
	};


	for (auto& it : e.m_Behivors)
	{
		EditInst<e2d::MonoBehivorMap>("behivor", it);
	}

	return  false;
}